const axios = require('axios')
const fs = require('fs')
const path = require('path')

async function test() {
  const a = await axios.get('http://ihrm-java.itheima.net/api/sys/login')
  console.log(6, a.data.success)
  const result = await a.data.success

  fs.writeFile(path.join(__dirname, '1.html'), JSON.stringify(result), err => {
    console.log(err)
  })
}

test()
